<!DOCTYPE html>
<html ng-app>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="js/angular.js" ></script>
	</head>
	<body >
		<input type="text" ng-model="a" />*
		<input type="text" ng-model="b" />
		=<span ng-bind="a*b"></span>
		
		<!--{{}}-->
		<input type="text" ng-model="c" />
		<input type="text"  ng-model="d"/>
		<span>结果是：{{c}} *{{d}}={{c+d}}</span>
		
		<div ng-app="" ng-init="person={firstName:'John',lastName:'Doe'}">
			<p>姓为 {{ person.lastName }}</p>
		</div>
        <!--输出结果：Doe-->
		<!--相同方式的有：-->
		<div ng-app="" ng-init="person={firstName:'John',lastName:'Doe'}">
  		  <p>姓为 <span ng-bind="person.lastName"></span></p> 
		</div>
		<!--输出结果：Doe-->		
		<div ng-app="" ng-init="points=[1,15,19,2,40]">
			<p>第三个值为 {{ points[2] }}</p>
	    </div>
		<!-- 输出结果：19-->
		<!--相同方式的有:-->
		<div ng-app="" ng-init="points=[1,15,19,2,40]">
  			<p>第三个值为 <span ng-bind="points[2]"></span></p
		</div>
		
	</body>
</html>
